import request from "@/utils/request";

// 查询库存状态一览表
export function stock(query) {
  return request({
    url: "/machine/analysis/stock",
    method: "get",
    params: query,
  });
}

// 查询库存状态一览表汇总
export function stockSum(query) {
  return request({
    url: "/machine/analysis/stockSum",
    method: "get",
    params: query,
  });
}

// 商品出入库明细
export function machineFlow(query) {
  return request({
    url: "/machine/analysis/machineFlow",
    method: "get",
    params: query,
  });
}

// 查询入库明细
export function lkDetail(query) {
  return request({
    url: "/machine/analysis/lkDetail",
    method: "get",
    params: query,
  });
}

// 查询入库明细汇总
export function lkDetailSum(query) {
  return request({
    url: "/machine/analysis/lkDetailSum",
    method: "get",
    params: query,
  });
}

// 查询出库明细
export function ckDetail(query) {
  return request({
    url: "/machine/analysis/ckDetail",
    method: "get",
    params: query,
  });
}

// 查询出库明细汇总
export function ckDetailSum(query) {
  return request({
    url: "/machine/analysis/ckDetailSum",
    method: "get",
    params: query,
  });
}

// 设备追踪
export function deviceTrack(query) {
  return request({
    url: "/machine/analysis/deviceTrack",
    method: "get",
    params: query,
  });
}

// 库存序列号
export function deviceStock(query) {
  return request({
    url: "/machine/analysis/deviceStock",
    method: "get",
    params: query,
  });
}

// 账户结余
export function accountPrice(query) {
  return request({
    url: "/machine/analysis/accountPrice",
    method: "get",
    params: query,
  });
}

// 资金流水
export function accountDocument(query) {
  return request({
    url: "/machine/analysis/accountDocument",
    method: "get",
    params: query,
  });
}

// 设备出入库明细
export function deviceFlow(serialNo) {
  return request({
    url: "/machine/analysis/deviceFlow?serialNo=" + serialNo,
    method: "get",
  });
}

// 耗材/零件领用
export function materialFlow(ckType, serialNo) {
  return request({
    url:
      "/machine/analysis/materialFlow?ckType=" +
      ckType +
      "&serialNo=" +
      serialNo,
    method: "get",
  });
}

// 印量成本分析
export function priceFlow(serialNo) {
  return request({
    url: "/machine/analysis/priceFlow?serialNo=" + serialNo,
    method: "get",
  });
}

// 查询入库应付数据
export function paySupplierList(query) {
  return request({
    url: "/machine/analysis/paySupplierList",
    method: "get",
    params: query,
  });
}
export function payLkList(query) {
  return request({
    url: "/machine/analysis/payLkList",
    method: "get",
    params: query,
  });
}
export function payLkDetailList(query) {
  return request({
    url: "/machine/analysis/payLkDetailList",
    method: "get",
    params: query,
  });
}
export function payLkSumList(query) {
  return request({
    url: "/machine/analysis/payLkSumList",
    method: "get",
    params: query,
  });
}
// 查询出库应收数据
export function receiveCkCustomerList(query) {
  return request({
    url: "/machine/analysis/receiveCkCustomerList",
    method: "get",
    params: query,
  });
}
export function receiveCkList(query) {
  return request({
    url: "/machine/analysis/receiveCkList",
    method: "get",
    params: query,
  });
}
export function receiveCkDetailList(query) {
  return request({
    url: "/machine/analysis/receiveCkDetailList",
    method: "get",
    params: query,
  });
}
export function receiveCkSumList(query) {
  return request({
    url: "/machine/analysis/receiveCkSumList",
    method: "get",
    params: query,
  });
}
// 查询结算应收数据
export function receiveClearCustomerList(query) {
  return request({
    url: "/machine/analysis/receiveClearCustomerList",
    method: "get",
    params: query,
  });
}
export function receiveClearList(query) {
  return request({
    url: "/machine/analysis/receiveClearList",
    method: "get",
    params: query,
  });
}
export function receiveClearDetailList(query) {
  return request({
    url: "/machine/analysis/receiveClearDetailList",
    method: "get",
    params: query,
  });
}
export function receiveClearSumList(query) {
  return request({
    url: "/machine/analysis/receiveClearSumList",
    method: "get",
    params: query,
  });
}

// 经营利润汇总(按收付)
export function manageProfit(query) {
  return request({
    url: "/machine/analysis/manageProfit",
    method: "get",
    params: query,
  });
}

// 经营利润图表数据(按收付)
export function manageProfitChar(query) {
  return request({
    url: "/machine/analysis/manageProfitChar",
    method: "get",
    params: query,
  });
}

// 经营收入(按收付)
export function manageReceive(query) {
  return request({
    url: "/machine/analysis/manageReceive",
    method: "get",
    params: query,
  });
}

// 经营支出(按收付)
export function managePay(query) {
  return request({
    url: "/machine/analysis/managePay",
    method: "get",
    params: query,
  });
}

// 经营明细(按收付)
export function profitDocumentList(query) {
  return request({
    url: "/machine/analysis/profitDocumentList",
    method: "get",
    params: query,
  });
}

// 经营利润汇总(按单据)
export function manageBusiProfit(query) {
  return request({
    url: "/machine/analysis/manageBusiProfit",
    method: "get",
    params: query,
  });
}

// 经营利润图表数据(按单据)
export function manageBusiProfitChar(query) {
  return request({
    url: "/machine/analysis/manageBusiProfitChar",
    method: "get",
    params: query,
  });
}

// 经营收入(按单据)
export function manageBusiReceive(query) {
  return request({
    url: "/machine/analysis/manageBusiReceive",
    method: "get",
    params: query,
  });
}

// 经营支出(按单据)
export function manageBusiPay(query) {
  return request({
    url: "/machine/analysis/manageBusiPay",
    method: "get",
    params: query,
  });
}

// 经营明细(按单据)
export function profitBusiDocumentList(query) {
  return request({
    url: "/machine/analysis/profitBusiDocumentList",
    method: "get",
    params: query,
  });
}

// 经营明细(按单据合计)
export function profitBusiDocumentSumList(query) {
  return request({
    url: "/machine/analysis/profitBusiDocumentSumList",
    method: "get",
    params: query,
  });
}

// 查询库存状态一览表
export function profit(query) {
  return request({
    url: "/machine/analysis/profit",
    method: "get",
    params: query,
  });
}
